import request from '@/utils/request'

const expert = {
  list (params) {
    return request.get('/zjk/experts/list', { params });
  },
  add (data) {
    return request.post('/zjk/experts/add', data);
  },
  get (id) {
    return request.get(`/zjk/experts/detail/${id}`);
  },
  del (id) {
    return request.post(`zjk/experts/delete/${id}`);
  },
  editMy (data) {
    return request.post('/zjk/experts/updateMyInfo', data)
  },
  edit (data) {
    return request.post('/zjk/experts/update', data)
  },
  getExpertsInfo () {
    return request.get('/zjk/experts/getExpertsInfo')
  },
  // 擅长学科
  expertSubjectsAdd (data) {
    return request.post('/zjk/expertSubjects/add', data)
  },
  expertSubjectsEdit (data) {
    return request.post('/zjk/expertSubjects/update', data)
  },
  expertSubjectsGet (id) {
    return request.get(`/zjk/expertSubjects/detail/${id}`)
  },
  expertSubjectsGetByExpertId (expertId) {
    return request.get(`/zjk/expertSubjects/getByExpertId/${expertId}`)
  },
  // 个人简介
  expertIntroduceAdd (data) {
    return request.post(`/zjk/expertIntroduce/add`, data)
  },
  expertIntroduceEdit (data) {
    return request.post(`/zjk/expertIntroduce/update`, data)
  },
  expertIntroduceByExpertId (id) {
    return request.get(`/zjk/expertIntroduce/selectById/${id}`)
  },
  // 研究成果
  expertAchievementAdd (data) {
    return request.post('/zjk/expertAchievement/add', data)
  },
  expertAchievementEdit (data) {
    return request.post('/zjk/expertAchievement/update', data)
  },
  expertAchievementGet (id) {
    return request.get(`/zjk/expertAchievement/detail/${id}`)
  },
  expertAchievementGetByExpertId (expertId) {
    return request.get(`/zjk/expertAchievement/getByExpertId/${expertId}`)
  },
  expertAchievementDel (id) {
    return request.post(`/zjk/expertAchievement/delete/${id}`)
  },
  // 承担项目情况
  projectListByExpertId (id) {
    return request.get(`/zjk/expertProject/getByExpertId/${id}`);
  },
  projectGet (id) {
    return request.get(`/zjk/expertProject/detail/${id}`);
  },
  projectEdit (data) {
    return request.post(`/zjk/expertProject/update`, data);
  },
  projectAdd (data) {
    return request.post(`/zjk/expertProject/add`, data);
  },
  projectDel (id) {
    return request.post(`/zjk/expertProject/delete/${id}`)
  },
  updateInfo (data) {
    return request.post(`/zjk/experts/updateInfo`, data)
  },
  kjxmList (reviewStatus, params) {
    return request.get(`/kjxm/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  bzhList (reviewStatus, params) {
    return request.get(`/bzh/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  wcxList (reviewStatus, params) {
    return request.get(`/wcx/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  checkIsUploadCNS (teamId) {
    return request.get(`/kjxm/reviewTeam/getFileByTeamId/${teamId}`)
  },
  delete (id) {
    return request.get(`zjk/experts/delete/${id}`)
  },
  kjsfList (reviewStatus, params) {
    return request.get(`/kjsf/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  cgzhList (reviewStatus, params) {
    return request.get(`/cgzh/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  ggxqList (reviewStatus, params) {
    return request.get(`/ggxq/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  kpzhList (reviewStatus, params) {
    return request.get(`/kpzh/projectExpertsInfo/getMyProjectExpertList/${reviewStatus}`, { params })
  },
  homeKpzhNum () {
    return request.get(`/kpzh/index/getGlyGztCount`)
  },
}

export default expert;
